<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2018/11/22
 * Time: 10:33
 */

namespace app\modules\bridge;


abstract class AbstractService
{
    public $formatter;

    /**
     * AbstractService constructor.
     * @param FormatterInterface $formatter
     */
    public function __construct(FormatterInterface $formatter)
    {
        $this->formatter = $formatter;
    }

    /**
     * className
     *
     * @date   2018/11/22
     * @author edmmss
     * @param FormatterInterface $formatter
     */
    public function setFormatter(FormatterInterface $formatter)
    {
        $this->formatter = $formatter;
    }

    abstract function get();
}